<link rel="stylesheet" href="__STATIC__/module/common/layui/css/layui.css">

<style>
    .new-form-control{
        margin-left: 10px;
        width: 200px;
        padding: 5px 10px;
        height: 30px;
        font-size: 12px;
        line-height: 1.5;
        border-radius: 3px;
        box-shadow: none;
        color: #555;
        background-color: #fff;
        background-image: none;
        border: 1px solid #ccc;
    }
</style>

<div class="box">
  <div class="box-header">
      
    <div class="row">
        <!--<div class="col-sm-4">-->
            <!--<ob_link><a class="btn" href="{:url('walletAdd')}"><i class="fa fa-plus"></i> 新 增</a></ob_link>-->
        <!--</div>-->

        <div class="box-tools search-form">
            <div class="input-group input-group-sm">
                <input type="date" style="margin-left: 15px;width: 200px;"  class="form-control" id="date" name="date" placeholder="开始日期"   value="{:input('date')}"/>
                <input type="date" style="margin-left: 15px;width: 200px;"  class="form-control" id="date1" name="date1" placeholder="结束日期"   value="{:input('date1')}"/>
                <input type="text" style="margin-left: 10px;width: 200px;"  class="form-control" name="search_data" placeholder="用户名"  value="{:input('search_data')}"/>

                <div class="input-group-btn" style="display:inline-block">
                    <button type="button" id="search"  url="{:url('reward_log')}" class="btn btn-info btn-flat"><i class="fa fa-search"></i></button>

                    <ob_link><a class="btn export" style="margin-left: 20px;" url="{:url('exportRewardList')}"><i class="fa fa-download"></i> 导 出</a></ob_link>
                </div>
            </div>
        </div>
    </div>

  </div>
  <div class="box-body table-responsive">
      <div class="top-table"> <span class="top-table-children">总条数:{$list['count']}</span> <span class="top-table-children">打赏金额总额:{$list['ke']}</span>   </div>
      <table  class="table table-bordered table-hover">
      <thead>
      <tr>
        
         <th>序号</th>
          <th>ID</th>
          <th>用户账号</th>
          <th>课程大纲</th>
          <th>打赏金额（RC）</th>
          <th>打赏时间</th>
    
      </tr>
      </thead>
      
      {notempty name='list.list'}
        <tbody>
            {volist name='list.list' id='vo' key="k"}
                <tr>
                  <td>
                   {$k}
                  </td>
                   <td>{$vo.id}</td>
                  <td>{$vo.username}</td>
                    <td>{$vo.collection['name']}</td>
                    <td>{$vo.number}</td>
                    <td>{$vo.create_time|date='Y-m-d H:i:s',###}</td>
                </tr>
            {/volist}
        </tbody>
        {else/}
        <tbody><tr class="odd"><td colspan="12" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
      {/notempty}
    </table>
      <input type="hidden"  id="layui"  value=""/>

  </div>
  <div class="box-footer clearfix text-center">
      {$list['list']->render()}
  </div>
</div>
<script>
    //导出功能
    $(".export").click(function(){

        window.location.href = searchFormUrl($(".export"));
    });
</script>